var SceneEnd = function(game){
    s = {
        game: game,
    }

    game.registerActions("KeyR", function(){
        var replay = new SceneTitle(game)
        game.replaceScene(replay)
    })    

    // 初始化
    s.update = function(){
    }
    s.draw = function(){
        game.ctx.font = "18px 'Microsoft YaHei Mono'"
        game.ctx.fillText("游戏结束,按R重新开始", 100,150)
    }

    return s
}